package com.vinci.login.service.impl;

import com.vinci.login.entity.TbLoginUser;
import com.vinci.login.mapper.TbLoginUserMapper;
import com.vinci.login.service.TbLoginUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author 淼
 * @since 2021-12-10
 */
@Service
public class TbLoginUserServiceImpl extends ServiceImpl<TbLoginUserMapper, TbLoginUser> implements TbLoginUserService {
    @Resource
    private TbLoginUserMapper tbLoginUserMapper;

    /**
     *登录校验
     * @param userName
     * @param passWord
     * @return
     */
    @Override
    public TbLoginUser loginuser(String userName, String passWord) {
        //导入config下的MD5utils工具类实现MD5密码32位加密
        return tbLoginUserMapper.loginuser(userName, passWord);
    }



}
